<template>
	<view class="mainpadding" v-if="pageShow">
		<!-- 审核中 -->
		<template v-if="plg.status==0">
			<view class="flexcenter">
				<u-icon class="" name="clock-fill" color="#ff7200" size="99"></u-icon>
			</view>
			<view class="margin_top bigtext xiaohei fonweight textcenter">审核中</view>
			<view class="ershiba xiaohui textcenter margin_top2">审核信息将于系统消息方式发送给您，<br>请注意查收</view>
		</template>
		<!-- 审核成功 -->
		<template v-if="plg.status==1">
			<view class="flexcenter">
				<u-icon class="" name="checkmark-circle-fill" color="#2979ff" size="99"></u-icon>
			</view>
			<view class="margin_top bigtext xiaohei fonweight textcenter">审核成功</view>
			<view class="ershiba xiaohui textcenter margin_top2">{{plg.sh_bz}}<br>请注意查收</view>
		</template>
		<!-- 审核失败 -->
		<template v-if="plg.status==2">
			<view class="flexcenter">
				<u-icon class="" name="error-circle-fill" color="#ff0000" size="99"></u-icon>
			</view>
			<view class="margin_top bigtext xiaohei fonweight textcenter">审核失败</view>
			<view class="ershiba xiaohui textcenter margin_top2">{{plg.sh_bz}}</view>
		</template>
		<view class="gudingdb ffffff mainpadding"  v-if="plg.status==2" @click="tzxzdz">
			<view class="bigbtn">重新提交</view>
		</view>
	</view>
</template>

<script>
	const httpRequest = require("@/common/httpRequest.js")
	export default {
		data() {
			return {
				pageShow:false,
				plg: {}
			}
		},
		onShow() {
			this.userinfomsg()
		},
		methods: {
			userinfomsg() {
				httpRequest.request('/api/user/index', 'GET', {}).then(res => {
					this.plg = res.data.plg
					this.pageShow=true
				})
			},
			tzxzdz(){
				uni.redirectTo({
					url:"/pages_mypage/renzhengplg"
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.fhbtn {
		width: 240rpx;
		height: 80rpx;
		border-radius: 180rpx 180rpx 180rpx 180rpx;
		font-size: 30rpx;
		font-family: PingFang SC, PingFang SC;
		font-weight: 400;
		color: #fff;
		background-color: #2361FF;
		border: 1rpx solid #2361FF;
	}

	.ckxbtn {
		width: 240rpx;
		height: 80rpx;
		border-radius: 180rpx 180rpx 180rpx 180rpx;
		font-size: 30rpx;
		font-family: PingFang SC, PingFang SC;
		font-weight: 400;
		color: #2361FF;
		border: 1rpx solid #2361FF;
	}
</style>